#pragma once

#include "Work.h"

#include "Element.h"
using namespace yazi::xml;

#include <string>
#include <map>
using namespace std;

namespace yazi{
namespace engine{

class WorkFlow{
public:
    WorkFlow();
    ~WorkFlow();

    bool load(const string& filename);
    bool load_plugin(Work* work, Element& element);

    bool run(const string& work, const string& input, string& output);

private:
    map<string, Work*> m_works;
};


}}